﻿@{
    ViewBag.Title = "IssueSpecialDiscountVoucher";
}

<div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">x</button>
                <h5>Issue Special Discount Voucher</h5>
            </div>
            <div class="modal-body">
                
                <form action="/orderview/saveIssueVoucher" id="fr-issuevoucher">
                    <input type="hidden" name="cId" id="cId" />
                    <div class="row-fluid">Please review the voucher credentials prior to issuing:</div>
                    <br />
                        <div class="row-fluid">
                              <label  class="span5">Value Type</label>
                              <div class="span7">
                                 @Html.DropDownList("VoucherValueTypeID")
                              </div>
                           </div> 
                        <div class="row-fluid">
                              <label  class="span5">Value</label>
                              <div class="span7">
                                <input type="text" name ="value" value="5.0000" class="form-control" />
                              </div>
                           </div> 
                        <div class="row-fluid">
                              <label  class="span5">Minimum Spend</label>
                              <div class="span7">
                                 <input type="text" name ="minimumspendvalue" value="1.0000" class="form-control" />
                               </div>
                           </div>
                      <div class="row-fluid">
                              <label  class="span5">Expiry Date</label>
                              <div class="span7">
                                 <div id="datetimepicker2" class="input-append">
                                    <input data-format="MM/dd/yyyy" type="text" name="expirydate" value="@DateTime.Now" id="expirydate" style="width: 173px;" required="required">
                                    <span class="add-on">
                                        <i data-time-icon="icon-time" data-date-icon="icon-calendar" class="icon-calendar"></i>
                                    </span>
                                </div>
                               </div>
                           </div> 
                     <div class="row-fluid">
                              <label  class="span5">Redemption Method</label>
                              <div class="span7">
                                 @Html.DropDownList("RedemptionMethodID")
                               </div>
                           </div>
                    <div class="row-fluid">                               
                              <label>Futher Details for issuing Voucher</label>  
                               <textarea style="width:90%;" class="form-control" rows="3" id ="description" name ="description"></textarea>                             
                           </div> 
                    <div class="modal-footer">
                        <button class="btn" data-dismiss="modal" aria-hidden="true">Cancel</button>
                        <button type="submit" class="btn btn-primary" onclick="saveIssueVoucher()">Issue Voucher</button>                
                    </div> 
                </form>
            </div>
            